#include "stdafx.h"
#include "NtD3DMaterial9.h"

NtD3DMaterial9::NtD3DMaterial9(void)
{
}

NtD3DMaterial9::~NtD3DMaterial9(void)
{
}

namespace _NtD3DMaterial9_
{
	const D3DXCOLOR      WHITE = D3DCOLOR_XRGB(255, 255, 255);
	const D3DXCOLOR      BLACK = D3DCOLOR_XRGB(  0,   0,   0);
	const D3DXCOLOR        RED = D3DCOLOR_XRGB(255,   0,   0);
	const D3DXCOLOR      GREEN = D3DCOLOR_XRGB(  0, 255,   0);
	const D3DXCOLOR       BLUE = D3DCOLOR_XRGB(  0,   0, 255);
	const D3DXCOLOR     YELLOW = D3DCOLOR_XRGB(255, 255,   0);
	const D3DXCOLOR       CYAN = D3DCOLOR_XRGB(  0, 255, 255);
	const D3DXCOLOR    MAGENTA = D3DCOLOR_XRGB(255,   0, 255);
}

void NtD3DMaterial9::SetMaterialColor( NtMaterialColor Color )
{
	switch( Color )
	{
	case MC_RED:
		{
			m_Material.Ambient= _NtD3DMaterial9_::RED;
			m_Material.Diffuse= _NtD3DMaterial9_::RED;
			m_Material.Specular= _NtD3DMaterial9_::RED;
			m_Material.Emissive= _NtD3DMaterial9_::RED;
			m_Material.Power = 2.0f;
		}
		break;

	case MC_YELLOW:
		{
			m_Material.Ambient= _NtD3DMaterial9_::YELLOW;
			m_Material.Diffuse= _NtD3DMaterial9_::YELLOW;
			m_Material.Specular= _NtD3DMaterial9_::YELLOW;
			m_Material.Emissive= _NtD3DMaterial9_::RED;
			m_Material.Power = 2.0f;
		}
		break;
	}
}

